// 输入口参数
var PageDi = {
    id: "PageDi", //页面id
    menu: "i18n.lan.menu.io", //所属菜单(一级菜单名)
    title: "i18n.lan.menu.PageDi", //标题（二级菜单名）
    parentIcon: "icon-me-io", //一级菜单图标
    icon: "icon-me-di", //图标
    refreshBtnCmd: "IOS_DUMPS", //刷新按钮指令
    saveBtn: true, //保存按钮
    el: [ //控件
        {
            elname: "datagrid",
            rowCount: Device.getNodesCount("di"), //必选,行数
            data: {
                width: "920px", //表格宽度
                // 列的属性
                columns: [
                    [{
                            field: "index",
                            width: 40,
                            align: "center",
                        },
                        {
                            field: "state",
                            dumpKey: "DIN<n>STATE",
                            dumpParamIndex: 0, //TODO 测试
                            width: 80,
                        },
                        {
                            field: "normalState",
                            formatter: Easyui.formatter.combobox,
                            editor: new Easyui.editor.Combobox(Device.getNormalStateItemsKV()),
                            dumpKey: "DIN<n>NODE_NS",
                            cmdKey: "DIN<n>NS",
                            dumpParamIndex: 0,
                            width: 100,
                        },
                        {
                            field: "stopAlarmTime",
                            editor: Easyui.editor.numberbox,
                            dumpKey: "DIN<n>NODE_SMSTO",
                            cmdKey: "DIN<n>ASSTO",
                            dumpParamIndex: 0,
                            width: 120,
                        },
                        {
                            field: "alarmSmsResendTime",
                            editor: Easyui.editor.numberbox,
                            dumpKey: "DIN<n>NODE_SMSTO",
                            cmdKey: "DIN<n>ASRTO",
                            dumpParamIndex: 1,
                            width: 120,
                        },
                        {
                            field: "ensureTime",
                            editor: Easyui.editor.numberbox,
                            dumpKey: "DIN<n>NODE_AETO",
                            cmdKey: "DIN<n>AETO",
                            width: 120,
                        },
                        {
                            field: "smsAlarm",
                            formatter: Easyui.formatter.checkbox,
                            editor: Easyui.editor.checkbox,
                            dumpKey: "DIN<n>NODE_PARAM",
                            cmdKey: "DIN<n>SMSEN",
                            dumpParamIndex: 0,
                            width: 70,
                            align: "center",
                        },
                        {
                            field: "recoverSms",
                            formatter: Easyui.formatter.checkbox,
                            editor: Easyui.editor.checkbox,
                            dumpKey: "DIN<n>NODE_PARAM",
                            cmdKey: "DIN<n>SMSREN",
                            dumpParamIndex: 2,
                            width: 70,
                            align: "center",
                        },
                        {
                            field: "soundAlarm",
                            formatter: Easyui.formatter.checkbox,
                            editor: Easyui.editor.checkbox,
                            dumpKey: "DIN<n>NODE_PARAM",
                            cmdKey: "DIN<n>SOUNDEN",
                            dumpParamIndex: 1,
                            width: 70,
                            align: "center",
                        },
                        {
                            field: "uploadTimer",
                            editor: Easyui.editor.numberbox,
                            dumpKey: "DIN<n>NODE_IOTTO",
                            dumpParamIndex: 0,
                            cmdKey: "DIN<n>IOTTO",
                            width: 100,
                        },
                    ]
                ],
            },
        },
    ],
}

CmdPage.add(PageDi); //添加到页面管理